import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { TodoController } from './todo.controller';
import { TodoEntity } from './todo.entity';
import { TodoService } from './todo.service';
import { ExcelModule } from '../tools/excel/excel.modules';

const services = [TodoService];

@Module({
  imports: [TypeOrmModule.forFeature([TodoEntity]), ExcelModule],
  controllers: [TodoController],
  providers: [...services],
  exports: [TypeOrmModule, ...services],
})
export class TodoModule {}
